package com.ruoyi.student.service.impl;


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentsMsgMapper;
import com.ruoyi.student.domain.StudentsMsg;
import com.ruoyi.student.service.IStudentsMsgService;

/**
 * 学生信息Service业务层处理
 *
 *  
 * @date 2024-04-16
 */
@Service
public class StudentsMsgServiceImpl implements IStudentsMsgService
{
    @Autowired
    private StudentsMsgMapper studentsMsgMapper;

    /**
     * 查询学生信息
     *
     * @param stuId 学生信息主键
     * @return 学生信息
     */
    @Override
    public StudentsMsg selectStudentsMsgByStuId(Long stuId)
    {
        return studentsMsgMapper.selectStudentsMsgByStuId(stuId);
    }

    /**
     * 查询学生信息列表
     *
     * @param studentsMsg 学生信息
     * @return 学生信息
     */
    @Override
    public List<StudentsMsg> selectStudentsMsgList(StudentsMsg studentsMsg)
    {
        return studentsMsgMapper.selectStudentsMsgList(studentsMsg);
    }

    /**
     * 新增学生信息
     *
     * @param studentsMsg 学生信息
     * @return 结果
     */
    @Override
    public int insertStudentsMsg(StudentsMsg studentsMsg)
    {
        return studentsMsgMapper.insertStudentsMsg(studentsMsg);
    }

    /**
     * 修改学生信息
     *
     * @param studentsMsg 学生信息
     * @return 结果
     */
    @Override
    public int updateStudentsMsg(StudentsMsg studentsMsg)
    {
        return studentsMsgMapper.updateStudentsMsg(studentsMsg);
    }

    /**
     * 批量删除学生信息
     *
     * @param stuIds 需要删除的学生信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentsMsgByStuIds(Long[] stuIds)
    {
        return studentsMsgMapper.deleteStudentsMsgByStuIds(stuIds);
    }

    /**
     * 删除学生信息信息
     *
     * @param stuId 学生信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentsMsgByStuId(Long stuId)
    {
        return studentsMsgMapper.deleteStudentsMsgByStuId(stuId);
    }
}
